#include "sys/time.h"

#include "Randomize.hh"

#include "ACEUserRunAction.hh"
#include "ACEMessenger.hh"
#include "globals.hh"

ACEUserRunAction::ACEUserRunAction(){;}

ACEUserRunAction::~ACEUserRunAction(){;}

void ACEUserRunAction::BeginOfRunAction(const G4Run*)
{
	timeval tv;
	gettimeofday(&tv,NULL);
	CLHEP::HepRandom::setTheSeed(tv.tv_usec);
}

void ACEUserRunAction::EndOfRunAction(const G4Run*)
{
//	double averageNumHits = messenger->GetAverageNumHits();
//	G4cout << "Photons produced: " << ((double)messenger->PhotonCount())/(messenger->getNumEvents()) << G4endl;
//	G4cout << "Average number of photoelectrons: " << averageNumHits << G4endl;

//	messenger->resetCounts();
}
